import { post } from '@/utils/request';
/** 登录飞书 */
export function loginFeishu(param: any) {
  return post('/users/api/comm/feishu/authen', param, { showLoading: true, requestType: 'form' });
}

/**获取企业 */
export function fetchCompanys(param: { types: string[] }) {
  return post('/users/api/web/user/companys', param);
}

// 选择企业
export function chooseCompany(param: any) {
  return post('/users/api/h5/user/company-set', param, { requestType: 'form' });
}

// 获取七牛云上传token
export const getQiniuToken = ({ bucket }: any): any => {
  return post('/demeter/api/file/upload/token', { bucket });
};
